<template>
  <div id="app">
    <transition name="fade"><router-view /></transition>
  </div>
</template>

<script>
import autofit from "autofit.js";

export default {
  name: "App",
  data() {
    return {};
  },
  mounted() {
    autofit.init({
      dh: 910,
      dw: 1920,
      el: "body",
      resize: true,
    });
    let wsUrl = localStorage.getItem("wsUrl");
    console.log("wsUrl111:", wsUrl);
    if (wsUrl && wsUrl.length > 0) {
      this.$store.dispatch("initWebSocket");
    }
  },
};
</script>
<style lang="scss" scoped>
// #app {
//   min-width: 1920px;
// }
</style>
